package com.common.constant;

public enum Codes {	
	SUCCESS(200, "执行成功!"),
	UNLOGIN(401, "您的账号未登陆!"),
	LOGIN_REEOR(402,"账号或密码错误!"),
	FORBIDDEN(403, "您的账号已被冻结!"),
	UNKNOW_METHOD(404,"您访问的接口不存在!"),
	METHOD_NOT_ALLOWED(405, "您没有访问权限！"),
	PARAM_ERROR(406,"参数错误"),
	ERROR(500, "服务器发生错误，请联系管理员!");

	private int code;
	private String message;
	private Codes(int code, String message) {
		this.code = code;
		this.message = message;
	}
	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}

}
